ig.module(
    
    'game.entities.cursor'
    
).requires(
    
    'impact.entity'
    
).defines(function(){

    EntityCursor = ig.Entity.extend({
        size:{
            x: 2,
            y: 2
        },
        offset:{
            x: 0,
            y: 0
        },
        maxVel: {
            x: 100,
            y: 100
        },
        checkAgainst: ig.Entity.TYPE.NONE,
        health: 1,
        animSheet: new ig.AnimationSheet('media/sprites/factory.png',2,2),
        init: function( x, y, settings){
            this.parent(x, y, settings);
            this.addAnim('idle', 1, [0]);
        },
        update: function(){
            this.pos.x = ig.input.mouse.x - this.size.x/2;
            this.pos.y = ig.input.mouse.y - this.size.y/2;
            this.parent();
        }        
    });
})